From a020c901ba2e52e6c8e12551910061037a2c2180 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 24 Nov 2020 12:39:19 -0800 Subject: [PATCH] macos: treat some toplevel NSWindow like document windows This makes the window animate in by the window manager like other application windows on macOS. Currently ignored for transient windows. --- gdk/macos/gdkmacostoplevelsurface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/macos/gdkmacostoplevelsurface.c b/gdk/macos/gdkmacostoplevelsurface.c index a9a6488419..05d88ba94f 100644 --- a/gdk/macos/gdkmacostoplevelsurface.c +++ b/gdk/macos/gdkmacostoplevelsurface.c @@ -174,6 +174,8 @@ _gdk_macos_toplevel_surface_present (GdkToplevel *toplevel, } else { + [nswindow setAnimationBehavior:NSWindowAnimationBehaviorDocumentWindow]; + if (!self->decorated && !GDK_MACOS_SURFACE (self)->did_initial_present && GDK_SURFACE (self)->x == 0 && -- 2.30.2